package com.example.demo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ItemReportVO {
    private Long itemId;
    private String reason;
    private String image;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public ItemReportVO() {
    }

    public ItemReportVO(Long itemId, String reason, String image, LocalDateTime createTime) {
        this.itemId = itemId;
        this.reason = reason;
        this.image = image;
        this.createTime = createTime;
    }
}
